import user from './modules/user.js'
import global from './modules/global.js'
import cart from './modules/cart.js'

// #ifndef VUE3
import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
const store = new Vuex.Store({
  modules: {
    user,
		global,
		cart
  }
})
// #endif

// #ifdef VUE3
import {
  createStore
} from 'vuex'
const store = createStore({
  modules: {
    user,
		global,
		cart
  }
})
// #endif

export default store